import {ExtraOptions, RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';

export const routes: Routes = [
    {
        path: 'home',
        loadChildren: () => import('./pages/home/home.module')
            .then(m => m.HomeModule),
        // canActivate: [LoginGuardService],
        // canActivateChild: [LoginGuardService],
    },
    // {
    //     path: 'auth',
    //     loadChildren: () => import('./pages/auth/auth.module')
    //         .then(m => m.AuthModule),
    // },
    {path: '', redirectTo: 'home', pathMatch: 'full'},
    {path: '**', redirectTo: 'pages'},
];

// const config: ExtraOptions = {
//     useHash: false,
// };

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule],
})
export class AppRoutingModule {
}
